package com.evil.application.pojo.dto.order.data;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 订单关联数据 请求实体
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderRelatedDataReqDTO {

    /**
     * 控件id
     */
    @NotNull(message = "控件id不能为空")
    private Long controlId;

    /**
     * 关键字
     */
    private String keyword;

    /**
     * 是否模糊查询 (0-否，1-是)
     */
    private Integer fuzzyQuery;

    public OrderRelatedDataReqDTO(Long controlId) {
        this.controlId = controlId;
    }
}
